import { createApp } from "vue";
import * as VueRouter from "vue-router";
import Antd from "ant-design-vue";
import "ant-design-vue/dist/antd.css";
import App from "./App.vue";
import Page1 from "./pages/page1.vue";
import Page2 from "./pages/page2.vue";

const routes = [
  { path: "/vite/121", component: Page1 },
  { path: "/vite/page2", component: Page2 },
];

const router = VueRouter.createRouter({
  history: VueRouter.createWebHashHistory("/vite/"),
  routes,
});

console.log(window.localStorage.getItem("ceshi"));

const app = createApp(App);
app.use(router).use(Antd);
app.mount("#vite-app");
